package com.webull.information.client.model.parm;

import java.io.Serializable;

/**
 * 新闻更新(新增)事件 (多值列设为LIST<T。但值列为T)
 * 
 * @author shimingjun
 * @date 2016年11月18日 下午6:32:33
 * @version 1.0
 * @since JDK 1.8
 */
public class NewsUpdateEvent implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Long newsId;
	private boolean forceReplace = false;// 是否替换更新
	/**
	 * 单值的列,存在：则是修改
	 */
	// attr...
	/**
	 * 多值的列，需要判重后再增量更新
	 */
	private Integer currencyId;
	private Integer tickerId;
	private Integer futureGroupId;
	private Integer associateId;

	public boolean isForceReplace() {
		return forceReplace;
	}

	public void setForceReplace(boolean forceReplace) {
		this.forceReplace = forceReplace;
	}

	public Long getNewsId() {
		return newsId;
	}

	public void setNewsId(Long newsId) {
		this.newsId = newsId;
	}

	public Integer getCurrencyId() {
		return currencyId;
	}

	public void setCurrencyId(Integer currencyId) {
		this.currencyId = currencyId;
	}

	public Integer getTickerId() {
		return tickerId;
	}

	public void setTickerId(Integer tickerId) {
		this.tickerId = tickerId;
	}

	public Integer getFutureGroupId() {
		return futureGroupId;
	}

	public void setFutureGroupId(Integer futureGroupId) {
		this.futureGroupId = futureGroupId;
	}

	public Integer getAssociateId() {
		return associateId;
	}

	public void setAssociateId(Integer associateId) {
		this.associateId = associateId;
	}

	public static NewsUpdateEvent produceInstance(Long newsId) {
		NewsUpdateEvent event = new NewsUpdateEvent();
		event.newsId = newsId;
		return event;
	}

}
